package com.tcm.ucenter.mapper;

import com.tcm.ucenter.domain.entity.UserRecharge;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRechargeMapper {

    int insert(UserRecharge userRecharge);

    UserRecharge findById(Long id);

    UserRecharge findByOrderSn(String orderSn);

    List<UserRecharge> listPageByUserId(@Param("userId") Long userId, @Param("offset") Long offset, @Param("pagesize") Long pagesize);

    int update(UserRecharge userRecharge);

    int deleteLogicById(Long id);

    int deleteById(Long id);

    Long countByUserId(Long userId);

}